package com.cykj.pos.util;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PospUtils {
    public static String getMyWxLence(String jigou) throws IOException {
//        InputStream in = new BufferedInputStream(new FileInputStream("/var/cms.properties"));
        InputStream in = new BufferedInputStream(new FileInputStream("E:\\工具/lence.properties"));
        Properties p = new Properties();
        p.load(in);
        return p.getProperty(jigou);
    }

    public static void main(String[] args) throws IOException {
        System.out.println(PospUtils.getMyWxLence("117"));
    }
}
